import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

const baseRouters = [{
    path: '/',
    redirect: '/login'
},
{
    path: '/login',
    name: 'login',
    component: () => import ('@/view/login/login.vue')
},
{
    path: '/about',
    name: 'about',
    component: () => import ('@/components/HelloWorld.vue')
}
]
const createRouter = () => new Router({
    routes: baseRouters
})
const router = createRouter()
export default router